package org.esprit.ocm.client.model.db;

import com.smartgwt.client.widgets.grid.ListGridRecord;

public class ServerRecord extends ListGridRecord {

	public ServerRecord() {
	}

	public ServerRecord(String idServer, String typeServer, String nameServer, String ipServer, String port, String useHTTPS, String resourcePrefix,
			String signatureVersion) {
		setIdServer(idServer);
		setTypeServer(typeServer);
		setNameServer(nameServer);
		setIpServer(ipServer);
		setPort(port);
		setUseHTTPS(useHTTPS);
		setResourcePrefix(resourcePrefix);
		setSignatureVersion(signatureVersion);
	}

	public String getIdServer() {
		return getAttributeAsString("idServer");
	}

	public void setIdServer(String idServer) {
		setAttribute("idServer", idServer);
	}

	public String getTypeServer() {
		return getAttributeAsString("typeServer");
	}

	public void setTypeServer(String typeServer) {
		setAttribute("nameServer", typeServer);
	}

	public String getNameServer() {
		return getAttributeAsString("nameServer");
	}

	public void setNameServer(String nameServer) {
		setAttribute("nameServer", nameServer);
	}

	public String getIpServer() {
		return getAttributeAsString("ipServer");
	}

	public void setIpServer(String ipServer) {
		setAttribute("ipServer", ipServer);
	}

	public String getPort() {
		return getAttributeAsString("port");
	}

	public void setPort(String port) {
		setAttribute("port", port);
	}

	public String getUseHTTPS() {
		return getAttributeAsString("useHTTPS");
	}

	public void setUseHTTPS(String useHTTPS) {
		setAttribute("useHTTPS", useHTTPS);
	}

	public String getResourcePrefix() {
		return getAttributeAsString("resourcePrefix");
	}

	public void setResourcePrefix(String resourcePrefix) {
		setAttribute("resourcePrefix", resourcePrefix);
	}

	public String getSignatureVersion() {
		return getAttributeAsString("signatureVersion");
	}

	public void setSignatureVersion(String signatureVersion) {
		setAttribute("signatureVersion", signatureVersion);
	}
}
